import { Column, DataType, Model, Table } from 'sequelize-typescript';

@Table({
  tableName: 'staff',
  underscored: true,
  modelName: 'StaffEntity',
  updatedAt: false,
})
export class StaffEntity extends Model<StaffEntity> {
  @Column({
    type: DataType.INTEGER.UNSIGNED,
    allowNull: false,
    primaryKey: true,
    autoIncrement: true,
  })
  id: number;

  @Column({
    type: DataType.STRING(25),
    allowNull: false,
  })
  name: string;
}
